﻿<%@ Page Language="C#" MasterPageFile="~/BasicBase/BasicBase.master" AutoEventWireup="true"
    CodeFile="KeyPoint.aspx.cs" Inherits="BasicBase_KeyUnit_KeyPoint" Title="无标题页"
    StylesheetTheme="Content" %>

<%@ Register Src="../../UserContral/ListPageContral.ascx" TagName="ListPageContral"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <ul class="topmenu">
        <li>
            <asp:HyperLink ID="hlReturn" runat="server">返回</asp:HyperLink></li>
    </ul>
    <table class="intable" cellpadding="0" cellspacing="0" width="100%">
        <caption>
            <span>重点部位添加</span>
        </caption>
        <tr>
            <td style="width: 20%">
                重点部位名称:
            </td>
            <td>
                <asp:TextBox ID="txtKeyPointName" runat="server"></asp:TextBox>
            </td>
            <td>
                <nobr>火灾危险性：</nobr>
            </td>
            <td>
                <asp:TextBox ID="txtFireDanger" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                内部结构:
            </td>
            <td>
                <asp:TextBox ID="txtInHouseStructure" runat="server"></asp:TextBox>
            </td>
            <td>
                耐火等级:
            </td>
            <td>
                <asp:DropDownList ID="ddlFireResistanceRating" runat="server">
                    <asp:ListItem>一级</asp:ListItem>
                    <asp:ListItem>二级</asp:ListItem>
                    <asp:ListItem>三级</asp:ListItem>
                    <asp:ListItem>四级</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td valign="top">
                生产、储存物质性质、数量等情况:
            </td>
            <td colspan="3">
                <asp:TextBox ID="txtSubstances" runat="server" TextMode="MultiLine" Width="98%"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td valign="top">
                四周情况:
            </td>
            <td colspan="3">
                <asp:TextBox ID="txtWhole" runat="server" TextMode="MultiLine" Width="98%"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td valign="top" style="width: 201px">
                重点部位具体参数（层数、长、宽、高、面积、直径、容积、极限压力）:
            </td>
            <td colspan="3">
                <asp:TextBox ID="txtParms" runat="server" TextMode="MultiLine" Width="98%"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td valign="top">
                火灾特点与火灾预测:
            </td>
            <td colspan="3">
                <asp:TextBox ID="txtFirePrediction" runat="server" TextMode="MultiLine" Width="98%"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="4">
                <asp:Button ID="btnSubmit" runat="server" Text="保存" OnClick="btnSubmit_Click" />
            </td>
        </tr>
    </table>
    <asp:GridView ID="gvKeyPoint" runat="server" AutoGenerateColumns="False" DataKeyNames="KeyPointID"
        OnRowDeleting="gvKeyPoint_RowDeleting" PageSize="10" AllowPaging="true" Caption="<span>重点部位列表</span>"
        OnRowDataBound="gvKeyPoint_RowDataBound">
        <Columns>
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:Label runat="server" ID="lblID"></asp:Label>
                </ItemTemplate>
                <ItemStyle Width="5%" />
            </asp:TemplateField>
            <asp:BoundField DataField="KeyPointName" HeaderText="重点部位名称" />
            <asp:BoundField DataField="FireDanger" HeaderText="火灾危险性" />
            <asp:BoundField DataField="InHouseStructure" HeaderText="内部结构" />
            <asp:BoundField DataField="FireResistanceRate" HeaderText="耐火等级" />
            <asp:TemplateField>
                <ItemTemplate>
                    <a href='<%# Eval("KeyPointID", "keyPointView.aspx?kpid={0}") %>'>
                        <img src="../../Images/report.gif" border="0" alt="报表"></a> <a href='<%# Eval("KeyPointID", "KeyPoint.aspx?kid={0}") %>'>
                            <img src="../../Images/Edit.gif" border="0" alt="编辑记录"></a>
                    <asp:ImageButton ID="ButtonDelete" runat="server" ImageUrl="~/Images/Delete.gif"
                        ToolTip="删除记录" CommandName="Delete" OnClientClick="return confirm('是否真的删除?')" />
                </ItemTemplate>
                <HeaderStyle Width="42px" />
                <ItemStyle HorizontalAlign="Right" />
            </asp:TemplateField>
        </Columns>
        <RowStyle HorizontalAlign="Left" />
        <HeaderStyle HorizontalAlign="Left" />
    </asp:GridView>
    <uc1:ListPageContral ID="ListPageContral1" runat="server" PageSize="10" />
</asp:Content>
